package com.yanu.meat.controller;

import com.yanu.meat.entity.SlaughterMeatSold;
import com.yanu.meat.service.SlaughterMeatSoldService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (SlaughterMeatSold)表控制层
 *
 * @author makejava
 * @since 2021-06-23 12:27:50
 */
@RestController
@RequestMapping("slaughterMeatSold")
public class SlaughterMeatSoldController {
    /**
     * 服务对象
     */
    @Resource
    private SlaughterMeatSoldService slaughterMeatSoldService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public SlaughterMeatSold selectOne(Integer id) {
        return this.slaughterMeatSoldService.queryById(id);
    }

}
